package com.ahnchan.ContactsPlus;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Properties;

import com.ahnchan.ContactsPlus.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class AboutActivity extends Activity {

	protected ContactsPlusSetting setting;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
        
        setting = ContactsPlusSetting.instatnce();
        
        
        // TODO
        // Content : Logo, Copyrigth, OpenSource, GPL, Contact info, version info 
        
        // TODO :
        // 0. align GUI
        // 1. Send Email 
        // 2. Close About
        
        
        Button sendButton = (Button)findViewById(R.id.about_send);
        sendButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// Send email
				sendEmail();
			}
		});
    }
    
    private void sendEmail() {

    	Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"+getString(R.string.email)));
    	startActivity(intent);
    	
    }
}